import sys
import graph 
import read
import operations

curr_graphs = read.read_graphs("test.g")
curr_graphs.debug()
initial_instances = operations.initial(curr_graphs)
initial_instances.debug()
expanded_instances = operations.expand_instances(initial_instances, curr_graphs)
print "--------------------------------------------------------------------------------------"
expanded_instances.debug()
operations.remove_identical_instances(expanded_instances)
print "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
expanded_instances.debug()
print expanded_instances.count
